package com.itheima.jk2;

public class TestInterface {

    public static void main(String[] args) {
      InterImp1 inter=new InterImp1();
      inter.show();

        System.out.println(inter.num);
    }
}
    class InterImp1 extends Object implements inter{
        public InterImp1(){super();}

        public void show(){
            System.out.println("实现类重写了show方法");

        }
    }


